import request from '/src/http/request.js'

export const getSectionPage = (params) =>
  request({ url: '/section/info/page', params })

export const getSectionList = () => request({ url: '/section/info/list' })

export const addSection = (params) =>
  request({ method: 'post', url: '/section/info/add', data: params })

export const updateSection = (params) =>
  request({ method: 'post', url: `/section/info/edit`, data: params })

export const deleteSection = (params) =>
  request({ url: `/section/info/delete/${params.id}` })
